package gameSite;

import java.util.ArrayList;
import javax.ejb.Stateful;

@Stateful
public class CurrentUserSession  {

	private static ArrayList<CurrentUserSession> currentUserSessionList = new ArrayList<CurrentUserSession>();
	
	User currentUser = null;
	Cart currentUserCart = null;
	SessionHandler currentUserSessionHandler = null;
	
	
	public CurrentUserSession(User currentUserParam, Cart currentUserCartParam, SessionHandler currentUserSessionHandlerParam)
	{
		currentUser = currentUserParam;
		currentUserCart = currentUserCartParam;
		currentUserSessionHandler = currentUserSessionHandlerParam;
		currentUserSessionList.add(this);
	}
	
	
	public ArrayList<CurrentUserSession> getCurrentUserSessionList(){return this.currentUserSessionList;}
	public User getCurrentUser() {	return currentUser;}
	public void setCurrentUser(User currentUser) {this.currentUser = currentUser;}
	public Cart getCurrentUserCart() {return currentUserCart;}
	public void setCurrentUserCart(Cart currentUserCart) {this.currentUserCart = currentUserCart;}
	public SessionHandler getCurrentUserSessionHandler() {return currentUserSessionHandler;	}
	public void setCurrentUserSession(SessionHandler currentUserSessionHandler) {this.currentUserSessionHandler = currentUserSessionHandler;}
	
	
	
}
